/*
Library for HC-SR04 Sensor
*/
#ifndef HC_SR04_h
#define HC_SR04_h

#include "Arduino.h"

class HC_SR04
{
  public:
    HC_SR04(int trigPin, int echoPin);
	long getDistance(bool returnCm);
  private:
	long microsecondsToCentimeters(long microseconds);
	long cmToInches(long centim);
	int pingPin;
    int inPin;
	bool debug;
};

#endif